﻿using System.Collections.Generic;
using Missbot.Service;

namespace Missbot.AIModule.SingleCommand.Fortune
{
    /// <summary>
    /// 运势加成物品
    /// </summary>
    public class FortuneItem : DbBaseEntity
    {
        /// <summary>
        /// 物品名
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 加成值
        /// </summary>
        public int Value { get; set; }
    }

    public static class FortuneItemDA
    {
        /// <summary>
        /// 获取所有运势加成物品
        /// </summary>
        /// <returns></returns>
        public static List<FortuneItem> GetAll()
        {
            return MongoService<FortuneItem>.Get();
        }
    }
}